﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using RecruitStudents.Utility;

namespace RecruitStudents.Client.WS
{
    /// <summary>
    /// LotteryService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class LotteryService : WS.Helper.BaseServiceHelper
    {
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetTB_Pad_SignedDataTable_New(string strExamPlaceNo, string strExamLevel, string strSpecialityKindsNO, string strExamYear, string strIdCard, string strName)
        {
            return ServiceLottery.GetTB_Pad_SignedDataTable_New(strExamPlaceNo, strExamLevel, strSpecialityKindsNO, strExamYear, strIdCard, strName).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string CheckTB_Pad_Signed_New(string SpecialityKindsNO, string ExamLevel, string ExamArea, string idCard, string strExamYear)
        {
            return ServiceLottery.CheckTB_Pad_Signed_New(SpecialityKindsNO, ExamLevel, ExamArea, idCard, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod]
        public string MakeLottery_New(string SignUpID, string examinationID, string lotNo, string strExamPlaceNo, string strExamLevel, string strSpecNo, string strExamYear)
        {
            return ServiceLottery.MakeLottery_New(SignUpID, examinationID, lotNo, strExamPlaceNo, strExamLevel, strSpecNo, strExamYear).ToJson();
        }



        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取分组信息 DataTable</i></b>")]
        public string GetTB_Pad_SignedDataTable(string strGroupNO, string strExamLevel, string strSpecialityKindsNO)
        {
            return ServiceLottery.GetTB_Pad_SignedDataTable(strGroupNO, strExamLevel, strSpecialityKindsNO).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>验证抽签 JosnMessage</i></b>")]
        public string CheckTB_Pad_Signed(string SpecialityKindsNO, string ExamLevel, string ExamArea, string idCard)
        {
            return ServiceLottery.CheckTB_Pad_Signed(SpecialityKindsNO, ExamLevel, ExamArea, idCard).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>抽签 JosnMessage</i></b>")]
        public string MakeLottery(string strSignUpStudentsSpecialityID, string strGroupNo, string examinationID, string lotNo)
        {
            return ServiceLottery.MakeLottery(strSignUpStudentsSpecialityID, strGroupNo, examinationID, lotNo).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>取消抽签 JosnMessage</i></b>")]
        public string CancelLottery(string strGroupNo, string signUpStudentsSpecialityId, string strSignedID)
        {
            return ServiceLottery.CancelLottery(strGroupNo, signUpStudentsSpecialityId, strSignedID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取抽签列表 JosnMessage</i></b>")]
        public string GetPad_QueueDataTable(string stExamRoomID, string strGroupNo)
        {
            return ServiceLottery.GetPad_QueueDataTable(stExamRoomID, strGroupNo).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>打印抽签列表 JosnMessage</i></b>")]
        public string GetPad_Queue_PrintDataTable(string ExamLevel, string stExamRoomID, string strGroupNO)
        {
            return ServiceLottery.GetPad_Queue_PrintDataTable(ExamLevel, stExamRoomID, strGroupNO).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>分配考场 JosnMessage</i></b>")]
        public string MakeExamRoomQueue(string strJson)
        {
            return ServiceLottery.MakeExamRoomQueue(strJson).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>取消排队 JosnMessage</i></b>")]
        public string CancelExamRoomQueue(string strQueueID)
        {
            return ServiceLottery.CancelExamRoomQueue(strQueueID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取预约组别 DataTable</i></b>")]
        public string GetAppointmentGroupDataTable(string strExamPlaceID, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceLottery.GetAppointmentGroupDataTable(strExamPlaceID, strSpecialityKindsNO, strExamLevel).ToJson();
        }
    }
}
